<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	<title>信息管理系统</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<script type="text/javascript" src="scripts/jquery/jquery-1.7.1.js"></script>
	<link href="../style/authority/basic_layout.css" rel="stylesheet" type="text/css">
	<link href="../style/authority/common_style.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="../scripts/authority/commonAll.js"></script>
	<script type="text/javascript" src="../scripts/jquery/jquery-1.4.4.min.js"></script>
	<script src="../scripts/My97DatePicker/WdatePicker.js" type="text/javascript" defer="defer"></script>
	<script type="text/javascript" src="../scripts/artDialog/artDialog.js?skin=default"></script>
	<script type="text/javascript" src="../scripts/Myscripts/alpha_add.js"></script>
</head>

<body>
<div id = "add_alpha_id">
<form id="submitForm" name="submitForm" action="/xngzf/archives/initFangyuan.action" method="post">
	<div id="container">
		<div class="ui_content">
			<table  cellspacing="0" cellpadding="0" width="100%" align="left" border="0">
				<tr>
					<td class="ui_text_rt"  width="100">选择任务号</td>
					<td class="ui_text_lt">
						&nbsp;&nbsp;&nbsp;
						<c:if test="${arr !=null}">
							<select name="txt_mission_id" id="txt_mission_id" class="ui_select01">
                           		<c:forEach items="${arr }" var="temp">
                         		<option value="${temp }" >${temp }</option>
                           		</c:forEach>
                        	</select>
							<input id="submitbutton" type="button" value="详情" class="ui_input_btn01"
							onclick="javascript:document.submitForm.action='Receiptservlet?operation=refresh';document.submitForm.submit()"/>
						</c:if>
						<c:if test="${arr ==null}">
							<td><font color='red'>当前不存在可录入回执的任务</font></td>
						</c:if>
					</td>
				</tr>
			</table>
		</div>
	</div>
	<c:if test="${sel!=null}">
		<div class="ui_content">
				<div class="ui_tb">
					<table class="table" cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
					<tr>
						<th>任务号</th>
						<th>分站号</th>
						<th>任务类型</th>
						<th>送货地址</th>
						<th>送货员</th>
						<th>商品名</th>
						<th>商品数量</th>
						<th>商品价格</th>
					</tr>
					<tr>
						<td><input type="hidden" name="txt_mission_id" value="${sel.mission_id }">${sel.mission_id }</td>
						<td><input type="hidden" name="txt_substation_id" value="${sel.substation_id }">${sel.substation_id }</td>
						<td><input type="hidden" name="txt_mission_type" value="${sel.mission_type }">${sel.mission_type }</td>
						<td><input type="hidden" name="txt_address" value="${sel.address }">${sel.address }</td>
						<td><input type="hidden" name="txt_user_name" value="${sel.user_name }">${sel.user_name }</td>
						<td><input type="hidden" name="txt_product_name" value="${sel.product_name }">${sel.product_name }</td>
						<td><input type="hidden" name="txt_product_number" value="${sel.product_number }">${sel.product_number }</td>
						<td><input type="hidden" name="txt_product_price" value="${sel.product_price }">${sel.product_price }</td>
					</tr>
				<tr>
					<td class="ui_text_rt">添加备注</td>
					<td class="ui_text_lt" colspan="6">
						<input type="text" id="txt_tips" name="txt_tips" value="" class="ui_input_txt03"/>
					</td>
					<td class="ui_text_lt">
						&nbsp;
						<input id="submitbutton" type="button" value="提交" class="ui_input_btn01"
						onclick="javascript:document.submitForm.action='Receiptservlet?operation=insert';document.submitForm.submit()"/>
					</td>
				</table>
			</div>
		</div>
	</c:if>
</form>
</div>
<script type="text/javascript">
    var eitem = document.getElementById("add_alpha_id");
    window.onload = add_alpha(eitem);
</script>
</body>
</html>